package com.example.springkotlin.uploadpic.domain

//import com.baomidou.mybatisplus.annotation.TableName
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableName
import lombok.AllArgsConstructor
import lombok.Data
import lombok.NoArgsConstructor
import org.springframework.web.multipart.MultipartFile

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
data class Person(var picPath: String = "1",
                  @TableField(exist = false)
                  var picFile: MultipartFile? = null,
                  var name: String ?= "",
                  var age: Int ?= 0) {

}